﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YetAnotherChat.Common.Interfaces
{
    public interface IGenericRepository<T> where T:EntityBase
    {
        T Create(T obj);
        void Update(T obj);
        void Delete(T obj);
        T Get(Guid id, bool enableTracking=false);
        T[] GetMany(Func<T, bool> where, bool enableTracking = false);
        void Commit();
    }
}
